package entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import entity.device.DeviceType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门管理
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DepartmentManagement implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 部门管理主键
     */
    @TableId(value = "department_management_id", type = IdType.AUTO)
    private Integer departmentManagementId;

    /**
     * 上级部门
     */
    private Integer parentDepartmentId;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 部门主管
     */
    private Integer headOfDepartmentId;

    /**
     * 状态(1开启 2关闭)
     */
    private Integer departmentState;

    /**
     * 备注
     */
    private String departmentRemark;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 删除标识(0未删除 1已删除)
     */
    private Integer deleteFlag;

    @TableField(exist = false)
    List<DepartmentManagement> children;

}
